package com.twt.recruit.utils.response;

public enum CommonEnum implements BaseErrorInfoInterface{
    // 数据操作错误定义
    SUCCESS("200", "成功!"),
    FAILED("-1", "失败"),
    CLUB_SUCCESS("201", "社团登陆成功"),
    USER_SUCCESS("202","个人账号登陆成功"),
    BODY_NOT_MATCH("400", "请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("401", "请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),
    SERVER_BUSY("503", "服务器正忙，请稍后再试!"),
    TOKEN_IS_EXPIRATION("A0203", "token已过期"),
    TOKEN_IS_NULL("A0201","token为空"),
    TOKEN_ROLE("A202","权限不足"),
    CONTACT_DEVELOPER("B001", "请联系开发人员"),
    REQUEST_METHOD_SUPPORT_ERROR("40001","当前请求方法不支持"),
    APPLICATION_REPEAT("C001", "已报名，不要重复提交"),
    APPLICATION_EXPORT("C002", "导出申请人信息失败"),
    TIME_EXPORT("C003", "导出面试时间失败"),
    PASSWORD_ERROR("C004","请检查账号或者密码"),
    PROJECT_NOT_FOUND("C005","项目信息不存在"),
    UID_ERROR("C006", "学号错误"),
    TIME_ERROR("C007","时间输入错误"),
    COMMENT_ERROR("C008","不建议使用组织账号呢评论"),
    CLUB_ROLE_ERROR("C009", "权限不足"),
    PROJECT_VIRES("C010","这不是你的项目"),
    QUESTION_NOT_FOUND("C011", "问题不存在");
    /**
     * 错误码
     */
    private final String resultCode;
    /**
     * 错误描述
     */
    private final String resultMsg;

    CommonEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }

}
